package com.starsys.service;

import com.starsys.model.StarNumber;

public class AdditionServiceImpl implements AdditionService {

	public StarNumber add(StarNumber... numbers) {
		int sum = 0;

		for (StarNumber n : numbers) {
			sum = sum + n.getNumber();
		}
		return new StarNumber(sum);
	}

}
